package com.osdp.auth.server;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.osdp.auth.entity.SysOauth2Client;
import com.osdp.auth.vo.SysOauth2ClientVo;

import java.util.List;

public interface ISysOauth2ClientService extends IService<SysOauth2Client> {

    IPage<SysOauth2ClientVo> pageList(SysOauth2ClientVo oauth2ClientVo, Page<SysOauth2Client> page);

    boolean updateOauth2Client(SysOauth2ClientVo oauth2ClientVo);

    boolean deleteOauth2Client(List<String> ids);
    /**
     *
     * @param clientId
     * @param secret
     * @param grantTypes
     * @param redirectUri
     * @param tenantId
     * @return
     */
    boolean saveOauth2Client(String clientId, String secret, String grantTypes, String redirectUri,String tenantId);
}
